import request from '@/utils/request'
import { unionApiUrl } from '@/api/config'


/**
 * 组织生活列表
 */
export function getList(data) {
    return request({
        url: unionApiUrl + '/partyOrganizationLife/getPagePartyOrganizationLife',
        method: 'post',
        data
    })
}

/**
 * 汇总详情列表
 */
export function getTotalList(data) {
    return request({
        url: unionApiUrl + '/partyOrganizationLife/getPageLifeSummaryDetail',
        method: 'post',
        data
    })
}

/**
 * 组织生活附件
 */
export function getFiles(data) {
    return request({
        url: unionApiUrl + '/partyOrganizationLifeFile/getPagePartyOrganizationLifeFile',
        method: 'post',
        data
    })
}

export function getDetail(params) {
    return request({
        url: unionApiUrl + '/partyOrganizationLife/getPartyOrganizationLifeById',
        method: 'get',
        params
    })
}

export function addData(data) {
    return request({
        url: unionApiUrl + '/partyOrganizationLife/insertSelective',
        method: 'post',
        data
    })
}

export function editData(data) {
    return request({
        url: unionApiUrl + '/partyOrganizationLife/updateByPrimaryKeySelective',
        method: 'post',
        data
    })
}

export function deleteData(params) {
    return request({
        url: unionApiUrl + '/partyOrganizationLife/deleteByPrimaryKey',
        method: 'post',
        params
    })
}